package hlhj.fhp.burst.customView

import android.app.Dialog
import android.content.Context
import android.os.Bundle
import hlhj.fhp.burst.R
import kotlinx.android.synthetic.main.choose_dialog.*

/**
 * Created by Administrator on 2018\5\15 0015.
 */
class ChooseDialog(context:Context,private val listener:OnChooseCommitListener) :Dialog(context, R.style.CustomDialog) {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.choose_dialog)

        btShoot.setOnClickListener {
            listener.shoot()
            dismiss()
        }
        btImg.setOnClickListener {
            listener.img()
            dismiss()

        }
        btVideo.setOnClickListener {
            listener.video()
            dismiss()

        }

    }

    interface OnChooseCommitListener{
        fun shoot()
        fun img()
        fun video()
    }

}